package com.ittest.service.impl.rabbitmq.direct.listener;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//@Component
public class MessageListener {


    @RabbitListener(queues = "direct_queue")
    public void receive(String id){
        System.out.println("这是自动执行的消费(rabbitmq direct)，id:" + id);
    }

}
